Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Management API calls for session API endpoints #613

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

l15n
Copy link
Contributor

@l15n l15n commented Sep 13, 2024

Changes

Add support for the Session resource endpoints in the Management API.

References

These endpoints are described in:

Description Request Grants Documentation
Introspect a specific session by ID GET /api/v2/sessions/{sessionId} read:sessions Get session
Delete a specific session by ID DELETE /api/v2/sessions/{sessionId} delete:sessions Delete Session
Revokes a session by ID and all associated refresh tokens. POST /api/v2/sessions/{id}/revoke delete:sessions, delete:refresh_tokens Revokes a session

The user session endpoints were previously added in #588

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of Ruby

Checklist

@l15n l15n requested a review from a team as a code owner September 13, 2024 03:22
@l15n
Copy link
Contributor Author

l15n commented Sep 13, 2024

Rubocop passes on all added/modified files

To clarify, Metrics/BlockLength is triggered on spec/lib/auth0/api/v2/sessions_spec.rb because the describe block is longer than 25 lines. This rule is unrealistic for rspec, and (almost?) all other spec files trigger the offense as well.

@l15n l15n changed the title Add Management API calls for session Add Management API calls for session API endpoints Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant